home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / Selection.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  1.3 KB  |  15 lines

  1. class Selection
  2. {
  3.  
  4.     function addListener(newListener)                                    // Registers an object to receive the notifications of keyboard focus change.
  5.     function getBeginIndex()                                             // Returns the beginning index of the selection span. 
  6.     function getCaretIndex()                                             // Returns the index of the insertion point position.
  7.     function getEndIndex()                                               // Returns the ending index of the selection span. 
  8.     function getFocus()                                                  // Returns the name of the variable for the currently focused text field, or "null" if there is no currently focused text field.
  9.     function removeListener(listener)                                    // Removes an object previously registered with "Selection.addListener()".
  10.     function setFocus(instanceName)                                      // Sets focus to the selectable text field, button, or movie clip specified by the "instanceName" parameter. 
  11.     function setSelection(start, end)                                    // Sets the selection span of the currently focused text field. 
  12.  
  13.     function onSetFocus()                                                // Notifies when the input focus changes.
  14. }
  15.